home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5022 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news.mira.net.au!news
  2. From: bytey@werple.net.au (Chris Hames)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 68040's Move16
  5. Date: 8 Mar 1996 12:47:00 +1100
  6. Organization: Werple Internet, Melbourne
  7. Message-ID: <4ho3ik$joj@werple.net.au>
  8. References: <4hks80$4l6@tempo.univ-lyon1.fr>
  9. NNTP-Posting-Host: werplez.mira.net.au
  10.  
  11. dscreve@ifhamy (David Screve) writes:
  12.  
  13. >    Does anybody how to use the MOVE16 instruction. This instruction
  14. >works on 68040 and higher, but seem to have specifics addressing modes.
  15.  
  16. move16 (Ax)+,(Ay)+
  17. move16 (xxx).L,(An)  and other way around
  18. move16 (xxx).L,(An)+ and other way around
  19.  
  20. The reason people say don't use (besides being 040 instruction) is that
  21. 040's might have microcode bugs with this instruction.  To quote Michael
  22. Sinz:-
  23.  
  24. "
  25. What to do:  Read about MOVE16.  Then read about the problems with MOVE16.
  26. MOVE16 is a data copying instruction that was added to the 68040 that will
  27. copy data without having the cache get in the way.  However, there are some
  28. limitations:
  29.  
  30. 1)  The data must be 16-byte aligned.  (A cache line in size)
  31. 2)  The MOVE16 loop must have a NOP at the start and one at the end.
  32.     That is:
  33.         nop
  34.     $1    move16
  35.         dbra    $1
  36.         nop
  37. 3)  The MOVE16 loop *MUST NOT* cause a bus fault or Enforcer hit in the
  38.     Amiga system.  This is partially due to some early 68040 CPUs and
  39.     partially because bus faults (Enforcer hits) are bad anyway.
  40.     However, in this case they are *even* *worse* as the CPU state will
  41.     get confused in the OS.
  42.  
  43. MOVE16 can make a major difference in performance if the data is in a
  44. cached memory area since it does not cause the cache to "get in the way"
  45. It will also use BURST access if the system hardware does burst.
  46. "
  47.  
  48. -- 
  49. Chris Hames   bytey@werple.mira.net.au (OR bytey@melbourne.dialix.oz.au)
  50. "How do I start another MS Windows process on this machine ?" 'huh ?'
  51. "Don't real IBM-PC's have the PC-Task icon to double click ?"
  52.